﻿namespace ParboiledSharp.parboiled.rules
{
    class CharRange:Rule
    {
        private readonly char _min;
        private readonly char _max;

        public CharRange(char min, char max) {
            _min = min;
            _max = max;
        }



        internal override bool Execute(dataobjects.Context context)
        {
            char c=context.GetNextChar();
            if (_min <= c && c<=_max) {
                return true;
            }
            return false;
        }
    }
}
